/**============检索功能平滑伸缩=======
 */
$(document).ready(function(){
	stretchSlide("divSearchTitle","divSearch","divSlide");
});
/**============检索功能平滑伸缩===Begin=======
 *@param divSearchTitle标题
 *@param divSearch搜索div
 *@param divSlide平滑
 */
function stretchSlide(divSearchTitle,divSearch,divSlide){
	$("#"+divSearchTitle).css("cursor","pointer");
	$("#"+divSearchTitle).click(function(){
   		$("#"+divSearch).slideToggle("slow");
   		if($("#"+divSlide).attr("class")=="glyphicon glyphicon-chevron-up"){
   			$("#"+divSlide).removeClass("glyphicon-chevron-up").addClass('glyphicon-chevron-down');
   		}else{
   			$("#"+divSlide).removeClass("glyphicon-chevron-down").addClass('glyphicon-chevron-up'); 
   		}
	});
}